﻿using System.Collections.Generic;
using NHibernate;
using Thaire.Investment.Domains.Transaction;

namespace Thaire.Investment.Repository
{
    public  class LoansInterestDetailRepo  : BaseRepository <LoansInterestDetail, int>
    {
        public LoansInterestDetailRepo(ISession session)
            : base(session)
        {
        }
        public List<LoansInterestDetail> GetListByHeaderId(int headerId)
        {
            return new List<LoansInterestDetail>(_session.QueryOver<LoansInterestDetail>()
                .Where(x => x.InterestHeaderID == headerId).List());
              
        }
 
    }
}
